package com.rogue.blog.model.po.article;

import com.rogue.blog.model.po.BasePO;
import com.rogue.blog.model.vo.article.ArticleVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * Created by 86101 on 2018-10-22.
 */
@Data
public class ArticlePO extends BasePO {
    private long articleId;
    private String articleName;
    private Date articleTime;
    private String articleContent;
    private int articleClick;
    private String articleDescription;
    private long articleCategory;
    private String articleOrigin;
    private long userId;

    public ArticleVO toVO() {
        ArticleVO vo = new ArticleVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
}
